package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.common.entity.QueryPageBean;
import com.itheima.pojo.Setmeal;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-12-19
 */
@Mapper
public interface SetmealMapper extends BaseMapper<Setmeal> {

    Page<Setmeal> findPage(QueryPageBean queryPageBean);

    Setmeal findById(Integer id);

    void add(Setmeal setmeal);

    void setSetmealAndCheckGroup(Integer id, List<Integer> checkGroupIds);

    void edit(Setmeal setmeal);

    void deleteSetmealAndCheckGroup(Integer id);

    void deleteByGroupId(Integer id);

    void deleteBySetmealId(Integer id);

    String getImgFilePath(Integer id);

    List<String> getAllImgFilePath();

    List<Setmeal> selectAll();
}
